{extend name="public/base" /}

{block name="title"}<title>{$Think.lang.list}</title>{/block}

{block name="pjax_container"}
<div class="hry-content-wrapper">
    <section class="content-header">
        <ol class="breadcrumb">
            <li>项目管理</li>
            <li>项目列表</li>
            <li>项目授权详情</li>
            <li class="active">
                {if condition="$type eq '1'" }
                未放弃名单
                {/if}
                {if condition="$type eq '2'" }
                已放弃名单
                {/if}
            </li>
        </ol>
    </section>
    <section class="content">
        <div class="top_box">
            <div>项目:{$p_info.project_name} </div>
            <div>类别:
                {if condition="$type eq '1'" }
                未放弃名单
                {/if}
                {if condition="$type eq '2'" }
                已放弃名单
                {/if}
            </div>
            <div>金额:{$fang_price} </div>
            <div class="dao_chu" id="dwonload" data-id={$p_info.id} data-type="{$type}">导出</div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="hry-form-wrapper">
                    <!--<div class="box-header with-border">-->
                        <!--<h3 class="box-title"></h3>-->
                        <!--<div class="pull-left">-->
                            <!--{:authAction(CONTROLLER_NAME.'/create', 'create')}-->
                        <!--</div>-->
                        <!--{include file="public/project_search" /}-->
                    <!--</div>-->
                    <div class="box-body table-responsive">
                        <table class="table table-bordered table-hover table-sort">
                            <tr>
                                <th>姓名</th>
                                <th>手机号码</th>
                                <th>认投金额</th>
                                <th>放弃权益</th>
                                <th>放弃时间</th>
                                <th>放弃至平台</th>
                                <th width="178">{$Think.lang.action}</th>
                            </tr>
                            {volist name="dataList" id="vo"}
                            <tr>
                                <td>{$vo.username}</td>
                                <td>{$vo.mobile}</td>
                                <td>{$vo.money}</td>
                                <td>{if condition="$vo.rights_state eq 1"}否{else}是{/if}</td>
                                <td>{$vo.rights_time}</td>
                                <td>{if condition="$vo.rights_state eq 1"}否{elseif condition="$vo.rights_state eq 2"}拼车车{elseif condition="$vo.rights_state eq 3"}达客云{/if}</td>
                                <td>
                                    <a class="btn-text btn-primary"  href="/hryweb.php/Project/hasGiveUpOrderList/id/{$p_info.id}/type/{$type}/uid/{$vo.uid}" >
                                        <span class="color-no">查看详细订单</span>
                                    </a>
                                </td>
                            </tr>
                            {/volist}
                        </table>
                    </div>
                    <div class="box-footer clearfix">
                        {$dataList->render()}
                    </div>
                </div>
            </div>


        </div>
    </section>
</div>

<script type="text/javascript">
    $(function(){
        /*ajax页面加载icheck，有该控件的页面才需要*/
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
            checkboxClass: 'icheckbox_minimal-blue',
            radioClass: 'iradio_minimal-blue'
        });

        $('#dwonload').click(function () {
            var url = "{:url('project/projectMemberList')}";
            id=$(this).data("id");
            type=$(this).data("type");
            location.href = url + "?id=" + id + "&type=" + type + "&down=1";
        });


        {if condition=" $rest_login == 1 "}
        restlogin('{$rest_login_info}');   //登录超时
        {/if}
    })

</script>

<style type="text/css">
    .top_box{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        font-size: 20px;
    }
    .dao_chu{
        font-size: 18px;
        width: 50px;
        height: 30px;
        color: #ffffff;
        background-color: #00a7d0;
        border-radius: 5px;
        text-align: center;
        line-height: 30px;
    }
</style>


{/block}